/**
 * @package: BrickCAD
 * @className: BrickView.java
 * @package: default
 * @author: Sean O'Brien, Jack, Lester Tam, Erik Telstad
 * @date_created: November 16, 2009
 * @last_motified: November 16, 2009
 * 
 * 
 * 
 */

import java.beans.PropertyVetoException;
import java.util.Observable;
import java.util.Observer;

import javax.swing.JInternalFrame;
import javax.swing.JPanel;

public abstract class BrickView extends JInternalFrame implements Observer {
	
	private static final long serialVersionUID = 1L;
	protected JPanel contentPane;
	protected static Brick model;
//	protected static CommandProcessor cmmdProc;
	protected static int FRAME_WIDTH = 300;  
	protected static int FRAME_HEIGHT = 300;  
 
	/**
	 * @param theModel
	 */
	public BrickView(Brick theModel) {
		super("",	 // title
			  true,  // resizable
			  true,  // closable
			  true,  // maximizable
			  true); //iconifiable
		
		model = theModel;
		theModel.addObserver(this);
		contentPane = new JPanel();
		try {
			setSelected(true);
		} catch (PropertyVetoException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
        //setSize(300, 300);
		//pack();
		
	}

	
	/* (non-Javadoc)
	 * @see java.util.Observer#update(java.util.Observable, java.lang.Object)
	 */
	@Override
	public void update(Observable o, Object arg) {
		// TODO Auto-generated method stub
		
	}

}
